#!/bin/bash
set -e
source smsg.sh
echo '----------now start to build APKs...------------'
./publishAPK.sh $@

if [ $? -ne 0 ]; then
	echo '################### build APKs failed, exit! ################'
	exit
fi

echo '----------now start to pack Ocean.tar...------------'
./publishServer.sh

if [ $? -ne 0 ]; then
	echo '################### pack Ocean.tar failed, exit! ################'
	exit
fi

echo "================================================================="
SMSG "All right! Everything is ok! And you must love Ubuntu!" 2
echo "================================================================="
